/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 三石
 * Date: 2022-04-25
 * Time: 15:54
 */
public class Tese {
    public static void main(String[] args) {
        Mylinkedlist mylinkedlist=new Mylinkedlist();
        mylinkedlist.addFirst(10);
        mylinkedlist.addFirst(11);
        mylinkedlist.addFirst(12);
        mylinkedlist.addFirst(13);
        mylinkedlist.addFirst(14);
        mylinkedlist.addLast(19);
        mylinkedlist.addLast(21);
        mylinkedlist.display();
        System.out.print("\n");
        mylinkedlist.addIndex(3,68);
        mylinkedlist.display();
        System.out.print("\n");
        System.out.print("链表长度为：");
        mylinkedlist.size();
        boolean str=mylinkedlist.contains(13);
        System.out.println(str);
    }
}
